<html layout:decorate="~{default/layout}" xmlns:layout="http://www.w3.org/1999/xhtml">
<head>
    <script>
        $(function(){

            //设置点击 class
            var url = document.URL;
            if (url.indexOf("alarm_list") > 0) {
                $('#alarm_list').addClass("active");
            } else {
                $('#threshold_manager').addClass("active");
            }
        });
    </script>
</head>
<body>
<div layout:fragment="content">
    <div class="main-content-inner">
        <div class="breadcrumbs ace-save-state" id="breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    <a href="#">主页</a>
                </li>
                <li class="active">报警管理</li>
            </ul>
        </div>

        <div>
            <ul class="nav nav-tabs">
                <li id="alarm_list" role="presentation"><a href="/alarm/alarm_list">报警查询</a></li>
                <li id="threshold_manager" role="presentation"><a href="/alarm/threshold_manager">阈值管理</a></li>
            </ul>
        </div>

        <div id="main-content" class="main-content" layout:fragment="content_alarm"></div>
    </div>
</div>
</body>
</html>